<template>
  <div class="home">
    <router-link v-for="route in routes" :key="route.path" :to="route.path">{{ route.meta.title }}</router-link>
  </div>
</template>

<script>
export default {
  name: 'HomeDemo',
  computed: {
    routes() {
      return this.$router.options.routes.filter(route => route.name !== this.$route.name)
    }
  }
}
</script>

<style lang="scss" scoped>
.home {
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
</style>
